﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Remoting.Lifetime;

namespace FinosServiceLibrary.Server {
    public class FMarshalByRefObject:MarshalByRefObject {
        public override object InitializeLifetimeService() {
            ILease lease = (ILease)base.InitializeLifetimeService();
            if (lease.CurrentState == LeaseState.Initial) {
                lease.InitialLeaseTime = new TimeSpan();
                //lease.RenewOnCallTime = TimeSpan.FromSeconds(20);
            }
            return lease;
        }
    }
}
